home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / lists / lreplace < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.1 KB  |  18 lines

  1.           lreplace list first last ?element element ...?
  2.                Returns  a  new  list  formed  by replacing one or more
  3.                elements of list with  the  element  arguments.   First
  4.                gives  the  index  in  list  of the first element to be
  5.                replaced.  If first is less than zero then it refers to
  6.                the  first  element  of list;  the element indicated by
  7.                first must exist in the list.  Last gives the index  in
  8.                list  of  the  last element to be replaced;  it must be
  9.                greater than or equal to first.  Last may  be  end  (or
  10.                any  abbreviation  of it) to indicate that all elements
  11.                between first  and  the  end  of  the  list  should  be
  12.                replaced.   The  element arguments specify zero or more
  13.                new arguments to be added to the list in place of those
  14.                that were deleted.  Each element argument will become a
  15.                separate element of the list.  If no element  arguments
  16.                are specified, then the elements between first and last
  17.                are simply deleted.
  18.